#ifndef _URL_INFO_H_
#define _URL_INFO_H_


#define HEADER_LEN 1500
#define MAX_HLINE 50
#define FILE_PATH_LEN 1500
#define MAX_PATH_PREFIX 56
struct url_info
{
	char buff[2+HEADER_LEN+1];
	u_int hlen;
	char *header;
	char *url;
	char *range;
	char *hline[MAX_HLINE];
	u_int hnum;
	char *filename;
	u_int filenamelen;
	char *qmark;
	u_int start, end;  /* start and end parameter in url */
	char path_buff[FILE_PATH_LEN+MAX_PATH_PREFIX];
	char *file_path;
	char *file_path_relative;
};

int recv_header(int socket_id, struct url_info *url_info);
int process_header_line(struct url_info *url);

#endif
